*This code reproduces Table 2, and Tables A.1-A.9

*set working directory
use "Final.Dataset.dta", clear

*set up preliminary data
set more off
replace deny="." if deny=="NA"
destring deny, replace
replace denyord="." if denyord=="NA"
destring denyord, replace
replace denyordcons="." if denyordcons=="NA"
destring denyordcons, replace
replace denyordlarge="." if denyordlarge=="NA"
destring denyordlarge, replace
generate logtimecount=log(timecount)
replace denyordlargecons="." if denyordlargecons=="NA"
destring denyordlargecons, replace

*table for summary statistics (Table A.1)
summarize denyordlarge denyordlargecons denyord  seclaw civicsight L7matconf_govcit L7protest_citgov legelecperiod logtimecount lnL7cases lnL7agencywork
summarize denyordlarge denyordlargecons denyord  seclaw civicsight L7matconf_govcit L7protest_citgov legelecperiod logtimecount lnL7cases lnL7agencywork, detail

*create topic variables
generate sensitive=0
replace sensitive=1 if maxtopic==4
replace sensitive=1 if maxtopic==8
replace sensitive=1 if maxtopic==9
replace sensitive=1 if maxtopic==11
replace sensitive=1 if maxtopic==12
replace sensitive=1 if maxtopic==15
replace sensitive=1 if maxtopic==17
replace sensitive=1 if maxtopic==18
replace sensitive=1 if maxtopic==19

*create covd topic measures
generate covidtopic1=0
replace covidtopic1=1 if maxtopic==4
replace covidtopic1=1 if maxtopic==2
replace covidtopic1=1 if maxtopic==5

*Table 1
xi: reg denyordlarge seclaw civicsight i.maxtopic i.agency, cluster(agency)
outreg2 using main.tex, tex replace adjr2 ctitle(Small) addtext(Year FE, NO, Month FE, NO, Agency FE, YES, Request Topic FE, YES) dec(3) nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})

xi: reg denyordlarge seclaw civicsight L7matconf_govcit L7protest_citgov legelecperiod i.maxtopic i.agency i.year i.month, cluster(agency)
outreg2 using main.tex, tex append adjr2 ctitle(Small) addtext(Year FE, NO, Month FE, NO, Agency FE, YES, Request Topic FE, YES) dec(3) nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})

xi: reg denyordlarge seclaw civicsight L7matconf_govcit L7protest_citgov legelecperiod logtimecount lnL7cases lnL7agencywork i.month i.maxtopic i.agency i.year, cluster(agency)
outreg2 using main.tex, tex append adjr2 ctitle(Small) addtext(Year FE, NO, Month FE, NO, Agency FE, YES, Request Topic FE, YES) dec(3) nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})

*Table A.4
xi: reg denyordlarge seclaw civicsight i.maxtopic i.agency if covidtopic1==0, cluster(agency)
outreg2 using covid1.tex, tex replace adjr2 ctitle(Small) addtext(Year FE, NO, Month FE, NO, Agency FE, YES, Request Topic FE, YES) dec(3) nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})

xi: reg denyordlarge seclaw civicsight L7matconf_govcit L7protest_citgov legelecperiod i.maxtopic i.agency i.year i.month if covidtopic1==0, cluster(agency)
outreg2 using covid1.tex, tex append adjr2 ctitle(Small) addtext(Year FE, NO, Month FE, NO, Agency FE, YES, Request Topic FE, YES) dec(3) nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})

xi: reg denyordlarge seclaw civicsight L7matconf_govcit L7protest_citgov legelecperiod logtimecount lnL7cases lnL7agencywork i.month i.maxtopic i.agency i.year if covidtopic1==0, cluster(agency)
outreg2 using covid1.tex, tex append adjr2 ctitle(Small) addtext(Year FE, NO, Month FE, NO, Agency FE, YES, Request Topic FE, YES) dec(3) nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})

*Table A.2
xi: reg denyordlarge seclaw civicsight i.maxtopic i.agency if sensitive==1, cluster(agency)
outreg2 using sensitive.tex, tex replace adjr2 ctitle(Small) addtext(Year FE, NO, Month FE, NO, Agency FE, YES, Request Topic FE, YES) dec(3) nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})

xi: reg denyordlarge seclaw civicsight L7matconf_govcit L7protest_citgov legelecperiod i.maxtopic i.agency i.year i.month if sensitive==1, cluster(agency)
outreg2 using sensitive.tex, tex append adjr2 ctitle(Small) addtext(Year FE, NO, Month FE, NO, Agency FE, YES, Request Topic FE, YES) dec(3) nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})

xi: reg denyordlarge seclaw civicsight L7matconf_govcit L7protest_citgov legelecperiod logtimecount lnL7cases lnL7agencywork i.month i.maxtopic i.agency i.year if sensitive==1, cluster(agency)
outreg2 using sensitive.tex, tex append adjr2 ctitle(Small) addtext(Year FE, NO, Month FE, NO, Agency FE, YES, Request Topic FE, YES) dec(3) nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})

*Table A.3
xi: reg denyordlarge seclaw civicsight i.maxtopic i.agency if sensitive==0, cluster(agency)
outreg2 using nonsensitive.tex, tex replace adjr2 ctitle(Small) addtext(Year FE, NO, Month FE, NO, Agency FE, YES, Request Topic FE, YES) dec(3) nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})

xi: reg denyordlarge seclaw civicsight L7matconf_govcit L7protest_citgov legelecperiod i.maxtopic i.agency i.year i.month if sensitive==0, cluster(agency)
outreg2 using nonsensitive.tex, tex append adjr2 ctitle(Small) addtext(Year FE, NO, Month FE, NO, Agency FE, YES, Request Topic FE, YES) dec(3) nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})

xi: reg denyordlarge seclaw civicsight L7matconf_govcit L7protest_citgov legelecperiod logtimecount lnL7cases lnL7agencywork i.month i.maxtopic i.agency i.year if sensitive==0, cluster(agency)
outreg2 using nonsensitive.tex, tex append adjr2 ctitle(Small) addtext(Year FE, NO, Month FE, NO, Agency FE, YES, Request Topic FE, YES) dec(3) nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})


*Table A.5
xi: oprobit denyordlarge seclaw civicsight i.maxtopic i.agency, cluster(agency)
outreg2 using ord.tex, tex replace ctitle(Small) addtext(Year FE, NO, Month FE, NO, Agency FE, YES, Request Topic FE, YES) dec(3) addstat(Log likelihood, e(ll), N of observations, e(N)) nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})

xi: oprobit denyordlarge seclaw civicsight L7matconf_govcit L7protest_citgov legelecperiod i.maxtopic i.agency i.year i.month, cluster(agency)
outreg2 using ord.tex, tex append ctitle(Small) addtext(Year FE, YES, Month FE, YES, Agency FE, YES, Request Topic FE, YES) dec(3) addstat(Log likelihood, e(ll), N of observations, e(N)) nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})

xi: oprobit denyordlarge seclaw civicsight L7matconf_govcit L7protest_citgov legelecperiod logtimecount lnL7cases lnL7agencywork i.month i.maxtopic i.agency i.year, cluster(agency)
outreg2 using ord.tex, tex append ctitle(Small) addtext(Year FE,YES, Month FE, YES, Agency FE, YES, Request Topic FE, YES) dec(3) addstat(Log likelihood, e(ll), N of observations, e(N)) nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})


*Table A.6
xi: reg denyordlargecons seclaw civicsight i.maxtopic i.agency, cluster(agency)
outreg2 using ordlargecons.tex, tex replace ctitle(Small) addtext(Year FE, NO, Month FE, NO, Agency FE, YES, Request Topic FE, YES) dec(3) nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})

xi: reg denyordlargecons seclaw civicsight L7matconf_govcit L7protest_citgov legelecperiod i.maxtopic i.agency i.year i.month, cluster(agency)
outreg2 using ordlargecons.tex, tex append ctitle(Small) addtext(Year FE, YES, Month FE, YES, Agency FE, YES, Request Topic FE, YES) dec(3) nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})

xi: reg denyordlargecons seclaw civicsight L7matconf_govcit L7protest_citgov legelecperiod logtimecount lnL7cases lnL7agencywork i.month i.maxtopic i.agency i.year, cluster(agency)
outreg2 using ordlargecons.tex, tex append ctitle(Small) addtext(Year FE, YES, Month FE, YES, Agency FE, YES, Request Topic FE, YES) dec(3) nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})

*Table A.7
xi: reg denyord seclaw civicsight i.maxtopic i.agency, cluster(agency)
outreg2 using ordsmallcons.tex, tex replace ctitle(Small) addtext(Year FE, NO, Month FE, NO, Agency FE, YES, Request Topic FE, YES) dec(3) nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})

xi: reg denyord seclaw civicsight L7matconf_govcit L7protest_citgov legelecperiod i.maxtopic i.agency i.year i.month, cluster(agency)
outreg2 using ordsmallcons.tex, tex append ctitle(Small) addtext(Year FE, YES, Month FE, YES, Agency FE, YES, Request Topic FE, YES) dec(3)  nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})

xi: reg denyord seclaw civicsight L7matconf_govcit L7protest_citgov legelecperiod logtimecount lnL7cases lnL7agencywork i.month i.maxtopic i.agency i.year, cluster(agency)
outreg2 using ordsmallcons.tex, tex append ctitle(Small) addtext(Year FE, YES, Month FE, YES, Agency FE, YES, Request Topic FE, YES) dec(3) nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})

*Table A.8
xi: reg denyordlarge seclaw civicsight i.maxtopic19 i.agency, cluster(agency)
outreg2 using topic19.tex, tex replace adjr2 ctitle(Small) addtext(Year FE, NO, Month FE, NO, Agency FE, YES, Request Topic FE, YES) dec(3) nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})

xi: reg denyordlarge seclaw civicsight L7matconf_govcit L7protest_citgov legelecperiod i.maxtopic19 i.agency i.year i.month, cluster(agency)
outreg2 using topic19.tex, tex append adjr2 ctitle(Small) addtext(Year FE, NO, Month FE, NO, Agency FE, YES, Request Topic FE, YES) dec(3) nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})

xi: reg denyordlarge seclaw civicsight L7matconf_govcit L7protest_citgov legelecperiod logtimecount lnL7cases lnL7agencywork i.month i.maxtopic19 i.agency i.year, cluster(agency)
outreg2 using topic19.tex, tex append adjr2 ctitle(Small) addtext(Year FE, NO, Month FE, NO, Agency FE, YES, Request Topic FE, YES) dec(3) nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})

*Table A.9
xi: reg denyordlarge seclaw civicsight i.maxtopic21 i.agency, cluster(agency)
outreg2 using topic21.tex, tex replace adjr2 ctitle(Small) addtext(Year FE, NO, Month FE, NO, Agency FE, YES, Request Topic FE, YES) dec(3) nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})

xi: reg denyordlarge seclaw civicsight L7matconf_govcit L7protest_citgov legelecperiod i.maxtopic21 i.agency i.year i.month, cluster(agency)
outreg2 using topic21.tex, tex append adjr2 ctitle(Small) addtext(Year FE, NO, Month FE, NO, Agency FE, YES, Request Topic FE, YES) dec(3) nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})

xi: reg denyordlarge seclaw civicsight L7matconf_govcit L7protest_citgov legelecperiod logtimecount lnL7cases lnL7agencywork i.month i.maxtopic21 i.agency i.year, cluster(agency)
outreg2 using topic21.tex, tex append adjr2 ctitle(Small) addtext(Year FE, NO, Month FE, NO, Agency FE, YES, Request Topic FE, YES) dec(3) nonotes addnote(*** p<.01 ** p<.05 * p<.10; Standard Errors Clustered on Agency) title("Linear Models of Nonresponsivness"\label{maintable})

 